package com.thirteenClassicsServer.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.thirteenClassics.entity.User;

@Mapper
public interface UserMapper {
    @Select("select * from user where email = #{email}")
    User getByEmail(String email);

    @Select("select username from user where uid = #{uid}")
    String getUserNameById(Long uid);
}
